<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>文档上传</title>
    <link rel="stylesheet" href="lib/dropzone/dropzone.min.css">
    <link href="lib/switch/bootstrap-switch.css" rel="stylesheet">

    <script src="lib/switch/bootstrap-switch.js" defer="defer"></script>

    <script src="lib/dropzone/dropzone.min.js" defer="defer"></script>

    <script src="js/util/DataUtils.js" defer="defer"></script>
    <script src="js/storage/commonDrop.js" defer="defer"></script>
</head>
<body>
<div class="box box-primary upload ">
    <div class="box-header with-border">
        <h3 class="box-title">文档上传</h3>

        <div class="box-tools pull-right">
            <button type="button" class="btn btn-primary url-List">url列表</button>
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
        </div><!-- /.box-tools -->

    </div><!-- /.box-header -->
    <div class="box-body">
        <div class="row">
            <div class="col-md-8">
                <div class="form-group">
                    <label class="control-label" for="directoryField"><i class="fa"></i>上传目录</label>
                    <div class="input-group">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button">http://sinacloud.net/<span>private</span></button>
                        </span>
                        <input type="text" class="form-control" id="directoryField" maxlength="60"
                               placeholder="目录" value="" form="uploadForm">
                        <div class="input-group-btn">
                            <button class="btn btn-default lock" type="button" data-on="使用" data-off="取消">使用</button>
                        </div>
                    </div><!-- /input-group -->
                    <span class="help-block"></span>
                </div>
            </div>
            <div class="col-md-4"></div>
        </div>
        <form id="uploadForm" action="storage/document/upload" class="dropzone text-primary upload" method="post"
              enctype="multipart/form-data">
            <input type="hidden" name="content" value="json"/>
            <input type="hidden" name="directory"/>
            <input type="hidden" name="secret" value="false">
            <!--<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>-->
        </form>
    </div> <!-- /.box-body -->
</div><!-- /.box -->
<!-- Modal,用于显示上传细节. start -->
<div id="detailModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">结果详情</h4>
            </div>
            <div class="modal-body">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div><!-- Modal,用于显示上传细节. -->


</body>
</html>